package asia.doing.mapper;

import asia.doing.entity.ArticleCategory;
import asia.doing.entity.ArticleTag;
import asia.doing.entity.Category;
import asia.doing.entity.Tag;

import java.util.List;

public interface TagMapper {
    List<Tag> selectAll(Tag tag);

    List<ArticleTag> selectByArtOrTagId(ArticleTag articleTag);

    Integer insert(Tag tag);

    Integer updateById(Tag tag);

    Integer deleteById(Integer id);

    Integer deleteByArtId(Integer a_id);

    Integer deleteByTagId(Integer t_id);

    Integer insertByArtId(Integer a_id, Integer t_id);
}
